package com.gupao.gupaoeduvippattern.javaBase.thread.ticket;

import org.junit.jupiter.api.Test;

/**
 * @author Administrator
 * @date 2020-12-03 19:22
 */
public class ThreadDemo {

    @Test
    public void test2(){
        for(int i=0; i<10000; i++){
            System.out.println("输出==>" + (i+1));
        }

    }

    @Test
    public void test1(){
        Window w1 = new Window();
        Window w2 = new Window();
        Window w3 = new Window();

        w1.setName("售票口A");
        w2.setName("售票口B");
        w3.setName("售票口C");

        w1.start();
        w2.start();
        w3.start();


    }

}
